// 导入系统路由配置
import useRouter from '@/router/index';
// 导入指令
import directives from "./directive";
// 导入API
import useApi from '@/http/api';
// 导入拖拽组件
import draggable from "./components/draggable";
// 导入动态数字组件（需要切换element-ui-plus的组件）
import animateNumber from 'animated-number-vue3';
// 导入in-form-designer
import inVueControls from '@/plugIn/in-vue-controls/src/index';
// 导入in-form-designer
import inFormDesigner from '@/plugIn/in-form-designer/src/index';
// 导入pinia-plugin-persistedstate
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

export default {
	install: (app: any) => {
		app.use(useRouter);
		app.use(createPinia().use(piniaPluginPersistedstate));
		app.use(animateNumber);
		app.use(directives);
		app.use(useApi);
		app.use(draggable);
		// app.use(inVueControls);
		app.use(inFormDesigner);
	}
};
